home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 33 / PCGamer33_OddworldAbesExoddus_CD1.iso / The Whell of Time / wotdemo.exe / System / Legend.u / ScriptText29.TextBuffer < prev    next >
Unknown  |  1999-11-02  |  5.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 50 55 2f 2f 3d 3d 3d 3d |........|PU//====|
|00000010| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000020| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 0d 0a 2f 2f 20 4c 65 |========|=..// Le|
|00000060| 67 65 6e 64 43 61 6e 76 | 61 73 2e 75 63 0d 0a 2f |gendCanv|as.uc../|
|00000070| 2f 20 24 41 75 74 68 6f | 72 3a 20 4d 66 6f 78 20 |/ $Autho|r: Mfox |
|00000080| 24 0d 0a 2f 2f 20 24 44 | 61 74 65 3a 20 31 30 2f |$..// $D|ate: 10/|
|00000090| 32 36 2f 39 39 20 35 3a | 33 38 70 20 24 0d 0a 2f |26/99 5:|38p $../|
|000000a0| 2f 20 24 52 65 76 69 73 | 69 6f 6e 3a 20 31 20 24 |/ $Revis|ion: 1 $|
|000000b0| 0d 0a 2f 2f 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |..//====|========|
|000000c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000100| 3d 0d 0a 0d 0a 63 6c 61 | 73 73 20 4c 65 67 65 6e |=....cla|ss Legen|
|00000110| 64 43 61 6e 76 61 73 20 | 65 78 70 61 6e 64 73 20 |dCanvas |expands |
|00000120| 43 61 6e 76 61 73 20 69 | 6e 74 72 69 6e 73 69 63 |Canvas i|ntrinsic|
|00000130| 3b 0d 0a 0d 0a 63 6f 6e | 73 74 20 42 61 73 65 53 |;....con|st BaseS|
|00000140| 69 7a 65 58 20 3d 20 36 | 34 30 2e 30 3b 0d 0a 63 |izeX = 6|40.0;..c|
|00000150| 6f 6e 73 74 20 42 61 73 | 65 53 69 7a 65 59 20 3d |onst Bas|eSizeY =|
|00000160| 20 34 38 30 2e 30 3b 0d | 0a 0d 0a 76 61 72 20 66 | 480.0;.|...var f|
|00000170| 6c 6f 61 74 20 46 61 63 | 74 6f 72 58 3b 0d 0a 76 |loat Fac|torX;..v|
|00000180| 61 72 20 66 6c 6f 61 74 | 20 46 61 63 74 6f 72 59 |ar float| FactorY|
|00000190| 3b 0d 0a 0d 0a 2f 2f 3d | 3d 3d 3d 3d 3d 3d 3d 3d |;....//=|========|
|000001a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000001b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000001c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000001d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000001e0| 3d 3d 3d 3d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |====....|function|
|000001f0| 20 44 6f 53 65 74 53 63 | 61 6c 65 28 20 6f 75 74 | DoSetSc|ale( out|
|00000200| 20 66 6c 6f 61 74 20 4f | 75 74 46 61 63 74 6f 72 | float O|utFactor|
|00000210| 58 2c 20 6f 75 74 20 66 | 6c 6f 61 74 20 4f 75 74 |X, out f|loat Out|
|00000220| 46 61 63 74 6f 72 59 2c | 20 6f 70 74 69 6f 6e 61 |FactorY,| optiona|
|00000230| 6c 20 62 6f 6f 6c 20 62 | 53 63 61 6c 65 55 70 20 |l bool b|ScaleUp |
|00000240| 29 0d 0a 7b 0d 0a 09 4f | 75 74 46 61 63 74 6f 72 |)..{...O|utFactor|
|00000250| 58 20 3d 20 31 2e 30 3b | 0d 0a 09 69 66 28 20 28 |X = 1.0;|...if( (|
|00000260| 53 69 7a 65 58 20 3e 3d | 20 31 29 20 26 26 20 28 |SizeX >=| 1) && (|
|00000270| 53 69 7a 65 58 20 3c 20 | 42 61 73 65 53 69 7a 65 |SizeX < |BaseSize|
|00000280| 58 20 7c 7c 20 62 53 63 | 61 6c 65 55 70 29 20 29 |X || bSc|aleUp) )|
|00000290| 20 0d 0a 09 7b 0d 0a 09 | 09 4f 75 74 46 61 63 74 | ...{...|.OutFact|
|000002a0| 6f 72 58 20 3d 20 66 6c | 6f 61 74 28 53 69 7a 65 |orX = fl|oat(Size|
|000002b0| 58 29 20 2f 20 42 61 73 | 65 53 69 7a 65 58 3b 0d |X) / Bas|eSizeX;.|
|000002c0| 0a 09 7d 0d 0a 0d 0a 09 | 4f 75 74 46 61 63 74 6f |..}.....|OutFacto|
|000002d0| 72 59 20 3d 20 31 2e 30 | 3b 0d 0a 09 69 66 28 20 |rY = 1.0|;...if( |
|000002e0| 28 53 69 7a 65 59 20 3e | 3d 20 31 29 20 26 26 20 |(SizeY >|= 1) && |
|000002f0| 28 53 69 7a 65 59 20 3c | 20 42 61 73 65 53 69 7a |(SizeY <| BaseSiz|
|00000300| 65 59 20 7c 7c 20 62 53 | 63 61 6c 65 55 70 29 20 |eY || bS|caleUp) |
|00000310| 29 20 0d 0a 09 7b 0d 0a | 09 09 4f 75 74 46 61 63 |) ...{..|..OutFac|
|00000320| 74 6f 72 59 20 3d 20 66 | 6c 6f 61 74 28 53 69 7a |torY = f|loat(Siz|
|00000330| 65 59 29 20 2f 20 42 61 | 73 65 53 69 7a 65 59 3b |eY) / Ba|seSizeY;|
|00000340| 0d 0a 09 7d 0d 0a 7d 0d | 0a 0d 0a 2f 2f 3d 3d 3d |...}..}.|...//===|
|00000350| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000360| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000370| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000380| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000390| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0a 0d 0a 66 75 |========|==....fu|
|000003a0| 6e 63 74 69 6f 6e 20 53 | 65 74 53 63 61 6c 65 28 |nction S|etScale(|
|000003b0| 29 0d 0a 7b 0d 0a 09 44 | 6f 53 65 74 53 63 61 6c |)..{...D|oSetScal|
|000003c0| 65 28 20 46 61 63 74 6f | 72 58 2c 20 46 61 63 74 |e( Facto|rX, Fact|
|000003d0| 6f 72 59 2c 20 66 61 6c | 73 65 20 29 3b 0d 0a 7d |orY, fal|se );..}|
|000003e0| 0d 0a 0d 0a 2f 2f 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |....//==|========|
|000003f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000400| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000410| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000420| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000430| 3d 3d 3d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |===....f|unction |
|00000440| 44 72 61 77 49 63 6f 6e | 41 74 28 20 74 65 78 74 |DrawIcon|At( text|
|00000450| 75 72 65 20 54 65 78 2c | 20 66 6c 6f 61 74 20 58 |ure Tex,| float X|
|00000460| 4c 2c 20 66 6c 6f 61 74 | 20 59 4c 2c 20 6f 70 74 |L, float| YL, opt|
|00000470| 69 6f 6e 61 6c 20 66 6c | 6f 61 74 20 53 63 61 6c |ional fl|oat Scal|
|00000480| 65 20 29 0d 0a 7b 0d 0a | 09 53 65 74 50 6f 73 28 |e )..{..|.SetPos(|
|00000490| 20 58 4c 20 2a 20 46 61 | 63 74 6f 72 58 2c 20 59 | XL * Fa|ctorX, Y|
|000004a0| 4c 20 2a 20 46 61 63 74 | 6f 72 59 20 29 3b 0d 0a |L * Fact|orY );..|
|000004b0| 09 69 66 28 20 53 63 61 | 6c 65 3d 3d 30 2e 30 20 |.if( Sca|le==0.0 |
|000004c0| 29 0d 0a 09 7b 0d 0a 09 | 09 53 63 61 6c 65 20 3d |)...{...|.Scale =|
|000004d0| 20 31 2e 30 3b 0d 0a 09 | 7d 0d 0a 0d 0a 09 44 72 | 1.0;...|}.....Dr|
|000004e0| 61 77 54 69 6c 65 28 20 | 54 65 78 2c 20 54 65 78 |awTile( |Tex, Tex|
|000004f0| 2e 55 53 69 7a 65 20 2a | 20 53 63 61 6c 65 20 2a |.USize *| Scale *|
|00000500| 20 46 61 63 74 6f 72 58 | 2c 20 54 65 78 2e 56 53 | FactorX|, Tex.VS|
|00000510| 69 7a 65 20 2a 20 53 63 | 61 6c 65 20 2a 20 46 61 |ize * Sc|ale * Fa|
|00000520| 63 74 6f 72 59 2c 20 30 | 2c 20 30 2c 20 54 65 78 |ctorY, 0|, 0, Tex|
|00000530| 2e 55 53 69 7a 65 2c 20 | 54 65 78 2e 56 53 69 7a |.USize, |Tex.VSiz|
|00000540| 65 20 29 3b 0d 0a 7d 0d | 0a 0d 0a 2f 2f 3d 3d 3d |e );..}.|...//===|
|00000550| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000560| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000570| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000580| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000590| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0a 0d 0a 66 75 |========|==....fu|
|000005a0| 6e 63 74 69 6f 6e 20 44 | 72 61 77 53 63 61 6c 65 |nction D|rawScale|
|000005b0| 64 54 69 6c 65 41 74 28 | 20 66 6c 6f 61 74 20 50 |dTileAt(| float P|
|000005c0| 6f 73 58 2c 20 66 6c 6f | 61 74 20 50 6f 73 59 2c |osX, flo|at PosY,|
|000005d0| 20 74 65 78 74 75 72 65 | 20 54 2c 20 66 6c 6f 61 | texture| T, floa|
|000005e0| 74 20 57 2c 20 66 6c 6f | 61 74 20 48 2c 20 66 6c |t W, flo|at H, fl|
|000005f0| 6f 61 74 20 74 58 2c 20 | 66 6c 6f 61 74 20 74 59 |oat tX, |float tY|
|00000600| 2c 20 66 6c 6f 61 74 20 | 74 57 2c 20 66 6c 6f 61 |, float |tW, floa|
|00000610| 74 20 74 48 2c 20 6f 70 | 74 69 6f 6e 61 6c 20 62 |t tH, op|tional b|
|00000620| 6f 6f 6c 20 62 48 61 63 | 6b 2c 20 6f 70 74 69 6f |ool bHac|k, optio|
|00000630| 6e 61 6c 20 62 6f 6f 6c | 20 62 53 63 61 6c 65 55 |nal bool| bScaleU|
|00000640| 70 20 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 66 |p )..{..|.local f|
|00000650| 6c 6f 61 74 20 54 69 6c | 65 46 61 63 74 6f 72 58 |loat Til|eFactorX|
|00000660| 2c 20 54 69 6c 65 46 61 | 63 74 6f 72 59 3b 0d 0a |, TileFa|ctorY;..|
|00000670| 0d 0a 09 44 6f 53 65 74 | 53 63 61 6c 65 28 20 54 |...DoSet|Scale( T|
|00000680| 69 6c 65 46 61 63 74 6f | 72 58 2c 20 54 69 6c 65 |ileFacto|rX, Tile|
|00000690| 46 61 63 74 6f 72 59 2c | 20 62 53 63 61 6c 65 55 |FactorY,| bScaleU|
|000006a0| 70 20 29 3b 0d 0a 0d 0a | 09 53 65 74 50 6f 73 28 |p );....|.SetPos(|
|000006b0| 20 50 6f 73 58 20 2a 20 | 54 69 6c 65 46 61 63 74 | PosX * |TileFact|
|000006c0| 6f 72 58 2c 20 50 6f 73 | 59 20 2a 20 54 69 6c 65 |orX, Pos|Y * Tile|
|000006d0| 46 61 63 74 6f 72 59 20 | 29 3b 0d 0a 09 69 66 28 |FactorY |);...if(|
|000006e0| 20 62 48 61 63 6b 20 29 | 0d 0a 09 7b 0d 0a 09 09 | bHack )|...{....|
|000006f0| 2f 2f 20 72 6f 74 3a 20 | 6e 6f 74 20 73 75 72 65 |// rot: |not sure|
|00000700| 20 77 68 79 20 73 6f 6d | 65 20 74 65 78 74 75 72 | why som|e textur|
|00000710| 65 73 20 6e 65 65 64 20 | 74 6f 20 62 65 20 64 72 |es need |to be dr|
|00000720| 61 77 6e 20 74 68 69 73 | 20 77 61 79 20 2d 2d 20 |awn this| way -- |
|00000730| 66 69 6e 64 20 63 61 75 | 73 65 20 61 6e 64 20 72 |find cau|se and r|
|00000740| 65 6d 6f 76 65 20 62 48 | 61 63 6b 0d 0a 09 09 44 |emove bH|ack....D|
|00000750| 72 61 77 54 69 6c 65 28 | 20 54 2c 20 57 2a 54 69 |rawTile(| T, W*Ti|
|00000760| 6c 65 46 61 63 74 6f 72 | 58 2c 20 48 2a 54 69 6c |leFactor|X, H*Til|
|00000770| 65 46 61 63 74 6f 72 59 | 2c 20 30 2c 20 30 2c 20 |eFactorY|, 0, 0, |
|00000780| 54 2e 55 53 69 7a 65 2c | 20 54 2e 56 53 69 7a 65 |T.USize,| T.VSize|
|00000790| 20 29 3b 0d 0a 09 7d 0d | 0a 09 65 6c 73 65 0d 0a | );...}.|..else..|
|000007a0| 09 7b 0d 0a 09 09 44 72 | 61 77 54 69 6c 65 28 20 |.{....Dr|awTile( |
|000007b0| 54 2c 20 57 2a 54 69 6c | 65 46 61 63 74 6f 72 58 |T, W*Til|eFactorX|
|000007c0| 2c 20 48 2a 54 69 6c 65 | 46 61 63 74 6f 72 59 2c |, H*Tile|FactorY,|
|000007d0| 20 74 58 2c 20 74 59 2c | 20 74 57 2c 20 74 48 20 | tX, tY,| tW, tH |
|000007e0| 29 3b 0d 0a 09 7d 0d 0a | 7d 0d 0a 0d 0a 2f 2f 3d |);...}..|}....//=|
|000007f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000800| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000810| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000820| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000830| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 0d 0a 0d 0a |========|====....|
|00000840| 66 75 6e 63 74 69 6f 6e | 20 53 65 74 46 6f 6e 74 |function| SetFont|
|00000850| 28 20 46 6f 6e 74 20 4e | 65 77 46 6f 6e 74 2c 20 |( Font N|ewFont, |
|00000860| 6f 70 74 69 6f 6e 61 6c | 20 62 6f 6f 6c 20 62 46 |optional| bool bF|
|00000870| 6f 72 63 65 20 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |orce )..|{...loca|
|00000880| 6c 20 73 74 72 69 6e 67 | 20 46 6f 6e 74 53 74 72 |l string| FontStr|
|00000890| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 66 6f 6e 74 20 54 |;...loca|l font T|
|000008a0| 65 6d 70 46 6f 6e 74 3b | 0d 0a 09 6c 6f 63 61 6c |empFont;|...local|
|000008b0| 20 66 6f 6e 74 20 46 6f | 6e 74 54 6f 55 73 65 3b | font Fo|ntToUse;|
|000008c0| 0d 0a 0d 0a 09 69 66 28 | 20 53 69 7a 65 58 20 3c |.....if(| SizeX <|
|000008d0| 20 35 31 32 20 26 26 20 | 21 62 46 6f 72 63 65 20 | 512 && |!bForce |
|000008e0| 29 0d 0a 09 7b 0d 0a 09 | 09 2f 2f 20 73 77 61 70 |)...{...|.// swap|
|000008f0| 20 66 6f 6e 74 20 69 66 | 20 61 6e 20 5f 53 20 76 | font if| an _S v|
|00000900| 65 72 73 69 6f 6e 20 69 | 73 20 61 76 61 69 6c 61 |ersion i|s availa|
|00000910| 62 6c 65 0d 0a 09 09 46 | 6f 6e 74 53 74 72 20 3d |ble....F|ontStr =|
|00000920| 20 73 74 72 69 6e 67 28 | 20 4e 65 77 46 6f 6e 74 | string(| NewFont|
|00000930| 20 29 20 24 20 22 5f 53 | 22 3b 0d 0a 0d 0a 09 09 | ) $ "_S|";......|
|00000940| 54 65 6d 70 46 6f 6e 74 | 20 3d 20 46 6f 6e 74 28 |TempFont| = Font(|
|00000950| 20 44 79 6e 61 6d 69 63 | 4c 6f 61 64 4f 62 6a 65 | Dynamic|LoadObje|
|00000960| 63 74 28 20 46 6f 6e 74 | 53 74 72 2c 20 63 6c 61 |ct( Font|Str, cla|
|00000970| 73 73 27 46 6f 6e 74 27 | 2c 20 74 72 75 65 20 29 |ss'Font'|, true )|
|00000980| 20 29 3b 0d 0a 09 09 69 | 66 28 20 54 65 6d 70 46 | );....i|f( TempF|
|00000990| 6f 6e 74 20 21 3d 20 4e | 6f 6e 65 20 29 0d 0a 09 |ont != N|one )...|
|000009a0| 09 7b 0d 0a 09 09 09 4e | 65 77 46 6f 6e 74 20 3d |.{.....N|ewFont =|
|000009b0| 20 54 65 6d 70 46 6f 6e | 74 3b 0d 0a 09 09 7d 0d | TempFon|t;....}.|
|000009c0| 0a 09 09 65 6c 73 65 20 | 69 66 28 20 69 6e 73 74 |...else |if( inst|
|000009d0| 72 28 20 46 6f 6e 74 53 | 74 72 2c 20 22 46 5f 45 |r( FontS|tr, "F_E|
|000009e0| 6c 65 6d 65 6e 74 22 20 | 29 20 21 3d 20 2d 31 20 |lement" |) != -1 |
|000009f0| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 2f 2f 20 73 70 |)....{..|...// sp|
|00000a00| 65 63 69 61 6c 20 68 61 | 6e 64 6c 69 6e 67 20 66 |ecial ha|ndling f|
|00000a10| 6f 72 20 69 6e 76 65 6e | 74 6f 72 79 20 69 6e 66 |or inven|tory inf|
|00000a20| 6f 20 65 6c 65 6d 65 6e | 74 20 6e 61 6d 65 20 66 |o elemen|t name f|
|00000a30| 6f 6e 74 0d 0a 09 09 09 | 54 65 6d 70 46 6f 6e 74 |ont.....|TempFont|
|00000a40| 20 3d 20 46 6f 6e 74 28 | 20 44 79 6e 61 6d 69 63 | = Font(| Dynamic|
|00000a50| 4c 6f 61 64 4f 62 6a 65 | 63 74 28 20 22 57 4f 54 |LoadObje|ct( "WOT|
|00000a60| 2e 46 5f 57 4f 54 52 65 | 67 30 38 22 2c 20 63 6c |.F_WOTRe|g08", cl|
|00000a70| 61 73 73 27 46 6f 6e 74 | 27 2c 20 74 72 75 65 20 |ass'Font|', true |
|00000a80| 29 20 29 3b 0d 0a 09 09 | 09 69 66 28 20 54 65 6d |) );....|.if( Tem|
|00000a90| 70 46 6f 6e 74 20 21 3d | 20 4e 6f 6e 65 20 29 0d |pFont !=| None ).|
|00000aa0| 0a 09 09 09 7b 0d 0a 09 | 09 09 09 4e 65 77 46 6f |....{...|...NewFo|
|00000ab0| 6e 74 20 3d 20 54 65 6d | 70 46 6f 6e 74 3b 0d 0a |nt = Tem|pFont;..|
|00000ac0| 09 09 09 7d 0d 0a 09 09 | 7d 0d 0a 09 09 65 6c 73 |...}....|}....els|
|00000ad0| 65 20 69 66 28 20 69 6e | 73 74 72 28 20 46 6f 6e |e if( in|str( Fon|
|00000ae0| 74 53 74 72 2c 20 22 46 | 5f 57 4f 54 49 74 61 31 |tStr, "F|_WOTIta1|
|00000af0| 34 22 20 29 20 21 3d 20 | 2d 31 20 29 0d 0a 09 09 |4" ) != |-1 )....|
|00000b00| 7b 0d 0a 09 09 09 2f 2f | 20 73 70 65 63 69 61 6c |{.....//| special|
|00000b10| 20 68 61 6e 64 6c 69 6e | 67 20 66 6f 72 20 69 74 | handlin|g for it|
|00000b20| 61 6c 69 63 20 66 6f 6e | 74 73 0d 0a 09 09 09 54 |alic fon|ts.....T|
|00000b30| 65 6d 70 46 6f 6e 74 20 | 3d 20 46 6f 6e 74 28 20 |empFont |= Font( |
|00000b40| 44 79 6e 61 6d 69 63 4c | 6f 61 64 4f 62 6a 65 63 |DynamicL|oadObjec|
|00000b50| 74 28 20 22 57 4f 54 2e | 46 5f 57 4f 54 52 65 67 |t( "WOT.|F_WOTReg|
|00000b60| 31 34 5f 53 22 2c 20 63 | 6c 61 73 73 27 46 6f 6e |14_S", c|lass'Fon|
|00000b70| 74 27 2c 20 74 72 75 65 | 20 29 20 29 3b 0d 0a 09 |t', true| ) );...|
|00000b80| 09 09 69 66 28 20 54 65 | 6d 70 46 6f 6e 74 20 21 |..if( Te|mpFont !|
|00000b90| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 09 09 09 7b 0d 0a |= None )|.....{..|
|00000ba0| 09 09 09 09 4e 65 77 46 | 6f 6e 74 20 3d 20 54 65 |....NewF|ont = Te|
|00000bb0| 6d 70 46 6f 6e 74 3b 0d | 0a 09 09 09 7d 0d 0a 09 |mpFont;.|....}...|
|00000bc0| 09 7d 0d 0a 09 7d 0d 0a | 0d 0a 09 46 6f 6e 74 20 |.}...}..|...Font |
|00000bd0| 3d 20 4e 65 77 46 6f 6e | 74 3b 0d 0a 7d 0d 0a 0d |= NewFon|t;..}...|
|00000be0| 0a 2f 2f 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |.//=====|========|
|00000bf0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000c00| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000c10| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000c20| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000c30| 0d 0a 2f 2f 20 43 6f 64 | 65 20 6f 75 74 73 69 64 |..// Cod|e outsid|
|00000c40| 65 20 74 68 69 73 20 63 | 6c 61 73 73 20 73 68 6f |e this c|lass sho|
|00000c50| 75 6c 64 20 63 61 6c 6c | 20 44 72 61 77 54 65 78 |uld call| DrawTex|
|00000c60| 74 41 74 20 6f 72 20 44 | 72 61 77 53 63 61 6c 65 |tAt or D|rawScale|
|00000c70| 64 54 65 78 74 41 74 2e | 20 53 65 74 0d 0a 2f 2f |dTextAt.| Set..//|
|00000c80| 20 62 46 6f 72 63 65 20 | 74 6f 20 66 6f 72 63 65 | bForce |to force|
|00000c90| 20 74 68 65 20 67 69 76 | 65 6e 20 66 6f 6e 74 20 | the giv|en font |
|00000ca0| 74 6f 20 62 65 20 75 73 | 65 64 20 28 61 20 73 63 |to be us|ed (a sc|
|00000cb0| 61 6c 65 64 20 64 6f 77 | 6e 20 66 6f 6e 74 20 77 |aled dow|n font w|
|00000cc0| 6f 6e 27 74 20 62 65 0d | 0a 2f 2f 20 73 75 62 73 |on't be.|.// subs|
|00000cd0| 74 69 74 75 72 65 64 29 | 2e 0d 0a 0d 0a 2f 2a 70 |titured)|...../*p|
|00000ce0| 72 69 76 61 74 65 2a 2f | 20 66 75 6e 63 74 69 6f |rivate*/| functio|
|00000cf0| 6e 20 44 6f 44 72 61 77 | 53 63 61 6c 65 64 54 65 |n DoDraw|ScaledTe|
|00000d00| 78 74 41 74 28 20 66 6c | 6f 61 74 20 58 4c 2c 20 |xtAt( fl|oat XL, |
|00000d10| 66 6c 6f 61 74 20 59 4c | 2c 20 63 6f 65 72 63 65 |float YL|, coerce|
|00000d20| 20 73 74 72 69 6e 67 20 | 54 65 78 74 2c 20 66 6f | string |Text, fo|
|00000d30| 6e 74 20 4e 65 77 46 6f | 6e 74 2c 20 62 6f 6f 6c |nt NewFo|nt, bool|
|00000d40| 20 62 43 52 2c 20 62 6f | 6f 6c 20 62 46 6f 72 63 | bCR, bo|ol bForc|
|00000d50| 65 2c 20 62 6f 6f 6c 20 | 62 43 65 6e 74 65 72 58 |e, bool |bCenterX|
|00000d60| 2c 20 62 6f 6f 6c 20 62 | 53 63 61 6c 65 20 29 0d |, bool b|Scale ).|
|00000d70| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 66 6f 6e 74 20 |.{...loc|al font |
|00000d80| 4f 6c 64 46 6f 6e 74 3b | 0d 0a 09 6c 6f 63 61 6c |OldFont;|...local|
|00000d90| 20 66 6c 6f 61 74 20 54 | 65 78 74 53 69 7a 65 58 | float T|extSizeX|
|00000da0| 2c 20 54 65 78 74 53 69 | 7a 65 59 3b 0d 0a 09 09 |, TextSi|zeY;....|
|00000db0| 09 0d 0a 09 69 66 28 20 | 4e 65 77 46 6f 6e 74 20 |....if( |NewFont |
|00000dc0| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 7b 0d 0a 09 |!= None |)...{...|
|00000dd0| 09 4f 6c 64 46 6f 6e 74 | 20 3d 20 46 6f 6e 74 3b |.OldFont| = Font;|
|00000de0| 0d 0a 09 09 53 65 74 46 | 6f 6e 74 28 20 4e 65 77 |....SetF|ont( New|
|00000df0| 46 6f 6e 74 2c 20 62 46 | 6f 72 63 65 20 29 3b 0d |Font, bF|orce );.|
|00000e00| 0a 09 7d 0d 0a 0d 0a 09 | 69 66 28 20 62 53 63 61 |..}.....|if( bSca|
|00000e10| 6c 65 20 29 0d 0a 09 7b | 09 0d 0a 09 09 58 4c 20 |le )...{|.....XL |
|00000e20| 2a 3d 20 46 61 63 74 6f | 72 58 3b 0d 0a 09 09 59 |*= Facto|rX;....Y|
|00000e30| 4c 20 2a 3d 20 46 61 63 | 74 6f 72 59 3b 0d 0a 09 |L *= Fac|torY;...|
|00000e40| 7d 0d 0a 0d 0a 09 69 66 | 28 20 62 43 65 6e 74 65 |}.....if|( bCente|
|00000e50| 72 58 20 29 0d 0a 09 7b | 0d 0a 09 09 2f 2f 20 64 |rX )...{|....// d|
|00000e60| 65 66 61 75 6c 74 20 62 | 65 68 61 76 69 6f 72 20 |efault b|ehavior |
|00000e70| 77 68 65 6e 20 43 61 6e | 76 61 73 2e 62 43 65 6e |when Can|vas.bCen|
|00000e80| 74 65 72 20 69 73 20 73 | 65 74 20 69 73 20 74 6f |ter is s|et is to|
|00000e90| 20 63 65 6e 74 65 72 20 | 54 65 78 74 20 69 6e 20 | center |Text in |
|00000ea0| 63 75 72 72 65 6e 74 20 | 77 69 6e 64 6f 77 20 28 |current |window (|
|00000eb0| 43 6c 69 70 58 29 0d 0a | 09 09 2f 2f 20 69 66 20 |ClipX)..|..// if |
|00000ec0| 62 43 65 6e 74 65 72 58 | 20 69 73 20 73 65 74 2c |bCenterX| is set,|
|00000ed0| 20 77 65 20 77 69 6c 6c | 20 63 65 6e 74 65 72 20 | we will| center |
|00000ee0| 74 68 65 20 74 65 78 74 | 20 6f 6e 20 74 68 65 20 |the text| on the |
|00000ef0| 67 69 76 65 6e 20 58 20 | 63 6f 6f 72 64 69 6e 61 |given X |coordina|
|00000f00| 74 65 20 28 61 73 73 75 | 6d 65 73 20 66 69 74 73 |te (assu|mes fits|
|00000f10| 20 69 6e 20 77 69 6e 64 | 6f 77 29 0d 0a 09 09 53 | in wind|ow)....S|
|00000f20| 74 72 4c 65 6e 28 20 54 | 65 78 74 2c 20 54 65 78 |trLen( T|ext, Tex|
|00000f30| 74 53 69 7a 65 58 2c 20 | 54 65 78 74 53 69 7a 65 |tSizeX, |TextSize|
|00000f40| 59 20 29 3b 0d 0a 09 09 | 58 4c 20 3d 20 58 4c 20 |Y );....|XL = XL |
|00000f50| 2d 20 54 65 78 74 53 69 | 7a 65 58 2f 32 3b 0d 0a |- TextSi|zeX/2;..|
|00000f60| 09 09 0d 0a 09 09 69 66 | 28 20 62 43 65 6e 74 65 |......if|( bCente|
|00000f70| 72 20 29 0d 0a 09 09 7b | 0d 0a 09 09 09 77 61 72 |r )....{|.....war|
|00000f80| 6e 28 20 22 4c 65 67 65 | 6e 64 43 61 6e 76 61 73 |n( "Lege|ndCanvas|
|00000f90| 2e 44 6f 44 72 61 77 53 | 63 61 6c 65 64 54 65 78 |.DoDrawS|caledTex|
|00000fa0| 74 41 74 3a 20 62 6f 74 | 68 20 62 43 65 6e 74 65 |tAt: bot|h bCente|
|00000fb0| 72 58 20 61 6e 64 20 62 | 43 65 6e 74 65 72 20 73 |rX and b|Center s|
|00000fc0| 65 74 20 2d 2d 20 74 68 | 69 73 20 64 6f 65 73 6e |et -- th|is doesn|
|00000fd0| 27 74 20 6d 61 6b 65 20 | 73 65 6e 73 65 22 20 29 |'t make |sense" )|
|00000fe0| 3b 0d 0a 09 09 7d 0d 0a | 09 7d 0d 0a 09 09 0d 0a |;....}..|.}......|
|00000ff0| 09 53 65 74 50 6f 73 28 | 20 58 4c 2c 20 59 4c 20 |.SetPos(| XL, YL |
|00001000| 29 3b 0d 0a 09 44 72 61 | 77 54 65 78 74 28 20 54 |);...Dra|wText( T|
|00001010| 65 78 74 2c 20 62 43 52 | 20 29 3b 0d 0a 0d 0a 09 |ext, bCR| );.....|
|00001020| 69 66 28 20 4e 65 77 46 | 6f 6e 74 20 21 3d 20 4e |if( NewF|ont != N|
|00001030| 6f 6e 65 20 29 0d 0a 09 | 7b 0d 0a 09 09 46 6f 6e |one )...|{....Fon|
|00001040| 74 20 3d 20 4f 6c 64 46 | 6f 6e 74 3b 0d 0a 09 7d |t = OldF|ont;...}|
|00001050| 0d 0a 7d 0d 0a 0d 0a 2f | 2f 3d 3d 3d 3d 3d 3d 3d |..}..../|/=======|
|00001060| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001070| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001080| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001090| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000010a0| 3d 3d 3d 3d 3d 3d 0d 0a | 2f 2f 20 53 63 61 6c 65 |======..|// Scale|
|000010b0| 73 20 58 4c 20 61 6e 64 | 20 59 4c 20 63 6f 6f 72 |s XL and| YL coor|
|000010c0| 64 69 6e 61 74 65 73 20 | 62 61 73 65 64 20 6f 6e |dinates |based on|
|000010d0| 20 63 75 72 72 65 6e 74 | 20 46 61 63 74 6f 72 58 | current| FactorX|
|000010e0| 20 61 6e 64 20 46 61 63 | 74 6f 72 59 20 73 65 74 | and Fac|torY set|
|000010f0| 74 69 6e 67 73 0d 0a 2f | 2f 20 28 77 68 69 63 68 |tings../|/ (which|
|00001100| 20 61 72 65 20 31 2e 30 | 20 66 6f 72 20 72 65 73 | are 1.0| for res|
|00001110| 6f 6c 75 74 69 6f 6e 73 | 20 6f 66 20 36 34 30 78 |olutions| of 640x|
|00001120| 34 38 30 20 6f 72 20 67 | 72 65 61 74 65 72 2c 20 |480 or g|reater, |
|00001130| 3c 20 31 2e 30 20 66 6f | 72 0d 0a 2f 2f 20 6c 6f |< 1.0 fo|r..// lo|
|00001140| 77 65 72 20 72 65 73 6f | 6c 75 74 69 6f 6e 73 29 |wer reso|lutions)|
|00001150| 2e 20 59 6f 75 20 70 72 | 6f 62 61 62 6c 79 20 77 |. You pr|obably w|
|00001160| 61 6e 74 20 74 6f 20 75 | 73 65 20 44 72 61 77 54 |ant to u|se DrawT|
|00001170| 65 78 74 41 74 20 69 6e | 73 74 65 61 64 20 6f 66 |extAt in|stead of|
|00001180| 20 74 68 69 73 0d 0a 2f | 2f 20 66 75 6e 63 74 69 | this../|/ functi|
|00001190| 6f 6e 20 69 66 20 79 6f | 75 20 61 72 65 20 64 72 |on if yo|u are dr|
|000011a0| 61 77 69 6e 67 20 72 65 | 6c 61 74 69 76 65 20 74 |awing re|lative t|
|000011b0| 6f 20 74 68 65 20 73 63 | 72 65 65 6e 20 73 69 7a |o the sc|reen siz|
|000011c0| 65 20 28 65 2e 67 2e 20 | 61 74 20 53 69 7a 65 58 |e (e.g. |at SizeX|
|000011d0| 2f 53 69 7a 65 59 29 2e | 0d 0a 0d 0a 66 75 6e 63 |/SizeY).|....func|
|000011e0| 74 69 6f 6e 20 44 72 61 | 77 53 63 61 6c 65 64 54 |tion Dra|wScaledT|
|000011f0| 65 78 74 41 74 28 20 66 | 6c 6f 61 74 20 58 4c 2c |extAt( f|loat XL,|
|00001200| 20 66 6c 6f 61 74 20 59 | 4c 2c 20 63 6f 65 72 63 | float Y|L, coerc|
|00001210| 65 20 73 74 72 69 6e 67 | 20 54 65 78 74 2c 20 6f |e string| Text, o|
|00001220| 70 74 69 6f 6e 61 6c 20 | 66 6f 6e 74 20 4e 65 77 |ptional |font New|
|00001230| 46 6f 6e 74 2c 20 6f 70 | 74 69 6f 6e 61 6c 20 62 |Font, op|tional b|
|00001240| 6f 6f 6c 20 62 43 52 2c | 20 6f 70 74 69 6f 6e 61 |ool bCR,| optiona|
|00001250| 6c 20 62 6f 6f 6c 20 62 | 46 6f 72 63 65 2c 20 6f |l bool b|Force, o|
|00001260| 70 74 69 6f 6e 61 6c 20 | 62 6f 6f 6c 20 62 43 65 |ptional |bool bCe|
|00001270| 6e 74 65 72 58 20 29 0d | 0a 7b 0d 0a 09 44 6f 44 |nterX ).|.{...DoD|
|00001280| 72 61 77 53 63 61 6c 65 | 64 54 65 78 74 41 74 28 |rawScale|dTextAt(|
|00001290| 20 58 4c 2c 20 59 4c 2c | 20 54 65 78 74 2c 20 4e | XL, YL,| Text, N|
|000012a0| 65 77 46 6f 6e 74 2c 20 | 62 43 52 2c 20 62 46 6f |ewFont, |bCR, bFo|
|000012b0| 72 63 65 2c 20 62 43 65 | 6e 74 65 72 58 2c 20 74 |rce, bCe|nterX, t|
|000012c0| 72 75 65 20 29 3b 0d 0a | 7d 0d 0a 0d 0a 2f 2f 3d |rue );..|}....//=|
|000012d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000012e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000012f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001300| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001310| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 0d 0a 0d 0a |========|====....|
|00001320| 66 75 6e 63 74 69 6f 6e | 20 44 72 61 77 54 65 78 |function| DrawTex|
|00001330| 74 41 74 28 20 66 6c 6f | 61 74 20 58 4c 2c 20 66 |tAt( flo|at XL, f|
|00001340| 6c 6f 61 74 20 59 4c 2c | 20 63 6f 65 72 63 65 20 |loat YL,| coerce |
|00001350| 73 74 72 69 6e 67 20 54 | 65 78 74 2c 20 6f 70 74 |string T|ext, opt|
|00001360| 69 6f 6e 61 6c 20 66 6f | 6e 74 20 4e 65 77 46 6f |ional fo|nt NewFo|
|00001370| 6e 74 2c 20 6f 70 74 69 | 6f 6e 61 6c 20 62 6f 6f |nt, opti|onal boo|
|00001380| 6c 20 62 43 52 2c 20 6f | 70 74 69 6f 6e 61 6c 20 |l bCR, o|ptional |
|00001390| 62 6f 6f 6c 20 62 46 6f | 72 63 65 2c 20 6f 70 74 |bool bFo|rce, opt|
|000013a0| 69 6f 6e 61 6c 20 62 6f | 6f 6c 20 62 43 65 6e 74 |ional bo|ol bCent|
|000013b0| 65 72 58 20 29 0d 0a 7b | 0d 0a 09 44 6f 44 72 61 |erX )..{|...DoDra|
|000013c0| 77 53 63 61 6c 65 64 54 | 65 78 74 41 74 28 20 58 |wScaledT|extAt( X|
|000013d0| 4c 2c 20 59 4c 2c 20 54 | 65 78 74 2c 20 4e 65 77 |L, YL, T|ext, New|
|000013e0| 46 6f 6e 74 2c 20 62 43 | 52 2c 20 62 46 6f 72 63 |Font, bC|R, bForc|
|000013f0| 65 2c 20 62 43 65 6e 74 | 65 72 58 2c 20 66 61 6c |e, bCent|erX, fal|
|00001400| 73 65 20 29 3b 0d 0a 7d | 0d 0a 0d 0a 2f 2f 3d 3d |se );..}|....//==|
|00001410| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001420| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001430| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001440| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001450| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 0d 0a 0d 0a 66 |========|===....f|
|00001460| 75 6e 63 74 69 6f 6e 20 | 66 6c 6f 61 74 20 53 63 |unction |float Sc|
|00001470| 61 6c 65 56 61 6c 58 28 | 20 66 6c 6f 61 74 20 56 |aleValX(| float V|
|00001480| 61 6c 20 29 0d 0a 7b 0d | 0a 09 72 65 74 75 72 6e |al )..{.|..return|
|00001490| 20 56 61 6c 2a 46 61 63 | 74 6f 72 58 3b 0d 0a 7d | Val*Fac|torX;..}|
|000014a0| 0d 0a 0d 0a 2f 2f 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |....//==|========|
|000014b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000014c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000014d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000014e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000014f0| 3d 3d 3d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |===....f|unction |
|00001500| 66 6c 6f 61 74 20 53 63 | 61 6c 65 56 61 6c 59 28 |float Sc|aleValY(|
|00001510| 20 66 6c 6f 61 74 20 56 | 61 6c 20 29 0d 0a 7b 0d | float V|al )..{.|
|00001520| 0a 09 72 65 74 75 72 6e | 20 56 61 6c 2a 46 61 63 |..return| Val*Fac|
|00001530| 74 6f 72 59 3b 0d 0a 7d | 0d 0a 0d 0a 2f 2f 20 65 |torY;..}|....// e|
|00001540| 6e 64 20 6f 66 20 4c 65 | 67 65 6e 64 43 61 6e 76 |nd of Le|gendCanv|
|00001550| 61 73 2e 75 63 0d 0a 0d | 0a 00 |as.uc...|.. |
+--------+-------------------------+-------------------------+--------+--------+